package com.csu.service;

public interface RedisService<K, V> {
    /**
     *向缓存中存入键值对
     */
    void set(K key, V value);

    /**
     *从缓存中取值
     */
    V get(K key);

    /**
     *删除键值对，成功返回false
     */
    boolean delete(K key);
}
